restart -f -nowave
view wave
add wave sim:/gain_amplifier/*
force clk 0 0, 1 50ns -repeat 100ns
--force ce 0 0, 1  150ns -repeat 300ns
force reset 0
run 300 ns
force reset 1 
run 300 ns
force reset 0 
force GAIN(0) 0111111111111
force GAIN(1) 0111111111111
force GAIN(2) 0111111111111
force GAIN(3) 0111111111111
force GAIN(4) 0111111111111
force GAIN(5) 0111111111111
force GAIN(6) 0111111111111
force GAIN(7) 0111111111111
force raw_output(0) 00110000000000011110000000
force raw_output(2) 01000000000000000011111111
force raw_output(3) 00010000000000010000000111
force raw_output(4) 00111000000000011111111100
force raw_output(5) 00001110000000011111111100
force raw_output(6) 01100000000000011111111111
force raw_output(7) 00011111000000011111000001
force raw_output(1) 00010100000000011110011111
force FB_OE 1
run 3000 ns
force FB_OE 0



run 90000 ns
#force GAIN(1) 0111111111111
#force GAIN(2) 0001111111111
#force GAIN(3) 0001111111111
#force GAIN(4) 0001111111111
#force GAIN(5) 0001111111111
#force GAIN(6) 0001111111111
#force GAIN(7) 0001111111111
#force GAIN(8) 0001111111111
#force raw_output(1) 0000111100000000000000000000000000000
#force raw_output(2) 0000111100000000000000000000000000000
#force raw_output(3) 0000111100000000000000000000000000000
#force raw_output(4) 0000111100000000000000000000000000000
#force raw_output(5) 0000111100000000000000000000000000000
#force raw_output(6) 0000111100000000000000000000000000000
#force raw_output(7) 0000111100000000000000000000000000000
#force raw_output(8) 0000111100000000000000000000000000000
#force FB_OE 1 
#run 3000 ns
#force fb_oe 0